	{include file="documentHeader"}
	<head>
		<title>{lang}wcf.user.teamList.title{/lang} - {lang}{PAGE_TITLE}{/lang}</title>
		{include file='headInclude' sandbox=false}
	</head>
	<body{if $templateName|isset} id="tpl{$templateName|ucfirst}"{/if}>

	{include file='header' sandbox=false}
	
	<div id="main">

		<ul class="breadCrumbs">
			<li><a href="index.php?page=Index{@SID_ARG_2ND}"><img src="{icon}indexS.png{/icon}" alt="" /> <span>{lang}{PAGE_TITLE}{/lang}</span></a> &raquo;</li>
		</ul>

		<div class="mainHeadline">
			<img src="{icon}usersL.png{/icon}" alt="" />
			<div class="headlineContainer">
				<h2>{lang}wcf.user.membersList.title{/lang}</h2>
			</div>
		</div>

		{if $userMessages|isset}{@$userMessages}{/if}

		<div class="tabMenu">
			<ul>
				<li><a href="index.php?page=MembersList{@SID_ARG_2ND}"><img src="{icon}membersM.png{/icon}" alt="" /> <span>{lang}wcf.user.membersList.allMembers{/lang}</span></a></li>
				<li><a href="index.php?form=MembersSearch{@SID_ARG_2ND}"><img src="{icon}membersSearchM.png{/icon}" alt="" /> <span>{lang}wcf.user.membersList.membersSearch{/lang}</span></a></li>
				{if $hasFriends}<li><a href="index.php?page=MyFriendsList{@SID_ARG_2ND}"><img src="{icon}friendsM.png{/icon}" alt="" /> <span>{lang}wcf.user.membersList.myFriends{/lang}</span></a></li>{/if}
				<li class="activeTabMenu"><a href="index.php?page=Team{@SID_ARG_2ND}"><img src="{icon}moderationM.png{/icon}" alt="" /> <span>{lang}wcf.user.teamList.title{/lang}</span></a></li>
				{if $additionalTabs|isset}{@$additionalTabs}{/if}
			</ul>
		</div>

		<div class="subTabMenu">
			<div class="containerHead"></div>
		</div>

		<div class="border tabMenuContent">

			{cycle values='container-1,container-2' print=false advance=false}
			{foreach from=$team item=group}
			<div class="contentBox">
					<h3 class="subHeadline">{lang}{$group.groupName}{/lang}</h3>
					<div class="border">
						<table class="tableList">
							<thead>
								<tr class="tableHead">
									<th class="columnTeamMemberName{if $sortField == 'username'} active{/if}"><div><a href="index.php?page=Team&amp;pageNo={@$pageNo}&amp;sortField=username&amp;sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.username{/lang}{if $sortField == 'username'} <img src="{icon}sort{@$sortOrder}S.png{/icon}" alt="" />{/if}</a></div></th>
									<th class="columnTeamMemberAvatar{if $sortField == 'avatar'} active{/if}"><div><a href="index.php?page=Team&amp;pageNo={@$pageNo}&amp;sortField=avatar&amp;sortOrder={if $sortField == 'avatar' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.avatar{/lang}{if $sortField == 'avatar'} <img src="{icon}sort{@$sortOrder}S.png{/icon}" alt="" />{/if}</a></div></th>
									{if $this->user->getPermission('user.mail.canMail')}<th class="columnTeamMemberMail{if $sortField == 'email'} active{/if}"><div><a href="index.php?page=Team&amp;pageNo={@$pageNo}&amp;sortField=email&amp;sortOrder={if $sortField == 'email' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.email{/lang}{if $sortField == 'email'} <img src="{icon}sort{@$sortOrder}S.png{/icon}" alt="" />{/if}</a></div></th>{/if}
									<th class="columnTeamHomepage{if $sortField == 'homepage'} active{/if}"><div><a href="index.php?page=Team&amp;pageNo={@$pageNo}&amp;sortField=homepage&amp;sortOrder={if $sortField == 'homepage' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.option.homepage{/lang}{if $sortField == 'homepage'} <img src="{icon}sort{@$sortOrder}S.png{/icon}" alt="" />{/if}</a></div></th>
								</tr>
							</thead>

							<tbody>
								{foreach from=$group.members item=member}
								<tr class="{cycle}">
									<td class="columnTeamMemberName" style="width:35%">
										<div class="containerIconSmall">
											{if $member->isOnline()}
												<img src="{@RELATIVE_WCF_DIR}icon/onlineS.png" alt="" title="{lang username=$member->username}wcf.user.online{/lang}" />
											{else}
												<img src="{@RELATIVE_WCF_DIR}icon/offlineS.png" alt="" title="{lang username=$member->username}wcf.user.offline{/lang}" />
											{/if}
										</div>
										<div class="containerContentSmall">
											<p><strong><a href="index.php?page=User&amp;userID={@$member->userID}{@SID_ARG_2ND}">{@$member->username}</a></strong></p>
											{if $member->getUserTitle()}
												<p class="smallFont">{$member->getUserTitle()}&nbsp;{if $member->getRank()}{@$member->getRank()->getImage()}{/if}</p>
											{/if}
										</div>
									</td>

									<td class="columnTeamMemberAvatar" style="width: 75px; text-align:center">
										{if $member->getAvatar()}
											{assign var=dummy value=$member->getAvatar()->setMaxHeight(50)}
											{assign var=avatar value=$member->getAvatar()}
											<a href="index.php?page=User&amp;userID={$member->userID}{@SID_ARG_2ND}" title="{lang username=$member->username}wcf.user.viewProfile{/lang}">
											<img src="{$avatar->getURL()}" style="width: {$avatar->width}px; height: {$avatar->height}px" alt="" /></a>
										{/if}
									</td>

									{if $this->user->getPermission('user.mail.canMail')}
										<td class="columntTeamMemberMail" style="text-align: center">
										{if  $member->canMail()}
											<a href="index.php?form=Mail&amp;userID={@$member->userID}{@SID_ARG_2ND}"><img src="{RELATIVE_WCF_DIR}icon/emailM.png" alt="" title="{lang username=$member->username}wcf.user.profile.email.title{/lang}" /></a>
										{/if}
										</td>
									{/if}

									<td class="columntTeamMemberWebsite" style="text-align: center">
										{if $member->homepage && $member->homepage != 'http://'}
											<a href="{$member->homepage}"><img src="{RELATIVE_WCF_DIR}icon/websiteM.png" alt="" title="{lang username=$member->username}wcf.user.profile.homepage.title{/lang}" /></a>
										{/if}
									</td>

								</tr>
								{/foreach}
							</tbody>
						</table>
					</div>
				</div>
			{/foreach}
		</div>
	</div>

	{include file='footer' sandbox=false}

	</body>
</html>